//
//  YTUtilityManager.h
//  YiTuUserClient
//
//  Created by 石少庸 on 2017/2/14.
//  Copyright © 2017年 YiTu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class  YTProfileModel , YTUserLoginModel, MJRefreshNormalHeader, MJRefreshAutoFooter;
@interface YTUtilityManager : NSObject

/// 单例
+ (instancetype)manager;

#pragma mark - property

/** 用户登陆后数据*/
@property (strong, nonatomic) YTUserLoginModel *userLoginModel;

/** 用户信息*/
@property (strong, nonatomic) YTProfileModel *userModel;

#pragma mark - 数据获取

///获取userID
- (NSString *)getUserID;

///获取token
- (NSString *)getUserToken;

///获取DeviceId
- (NSString *)getDeviceId;

#pragma mark - 用户操作

///退出登录
- (void)userExitAction;

///获取城市缓存状态
- (BOOL)getCityCacheState;

///获取国家区号缓存状态
- (BOOL)getCountryCodeCacheState;

///查询是否存储过国内航班信息
- (BOOL)getFlightInfoInland;

///查询是否存储过国外航班信息
- (BOOL)getFlightInfoForeign;

///时间判断
- (BOOL)compareLocalDate:(NSString*)localDate
           withOrderDate:(NSString*)orderDate;

// 是否需要显示引导页
- (BOOL)isShowGuideView;

@end

/// 登陆成功通知
FOUNDATION_EXTERN NSString * const YTUserLoginSuccessNotification;
/// 用户需要登陆的时候发起这个通知
FOUNDATION_EXTERN NSString * const YTUserNeedToLoginNotification;
/// 用户注册成功
FOUNDATION_EXTERN NSString * const YTUserRegisterSuccessNotification;
/// 未读消息数通知
FOUNDATION_EXTERN NSString * const YTUserUnreadMessageNotification;
/// 抢单成功后跳转到行程页面
FOUNDATION_EXTERN NSString * const YTPickOrderSuccessNofitication;
